package com.admin.control.webflux;

import com.admin.service.SysPersonService;
import com.admin.service.vo.SysPerson;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.RestController;
import reactor.core.publisher.Flux;
import reactor.core.publisher.Mono;

//@RestController("webfluxPermission")
//@RequestMapping("webflux/permission")
public class PermissionController {

//    @Autowired
//    private SysPersonService sysPersonService;
//
//    public Mono<SysPerson> queryById(@RequestParam String id) {
//        return Mono.justOrEmpty(sysPersonService.queryById(id));
//    }
//
//    public Flux<SysPerson> queryAll() {
//        return Flux.fromIterable(sysPersonService.queryAll());
//    }
}
